const DRAWING_ID = 'idGlobal'
const DRAWING_ITEMS = 'drawingItems'

export function getIdGlobal() {
    const str = localStorage.getItem(DRAWING_ID);
    if(str) return parseInt(str,10) 
    return 100
}

export function saveIdGlobal(id) {
  localStorage.setItem(DRAWING_ID, `${id}`)
}

export function saveDrawingList(list) {
    localStorage.setItem(DRAWING_ITEMS, JSON.stringify(list))
  }